All Functions of Week 10

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

with

{base}

evaluate expression in the context of a data frame

droplevels

{base}

Drop Unused Levels from Factors

levels

{base}

Get levels of a factor

xlab

{GGPLOT2}

Label the x axis (ggplot)

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

prop.table

{base}

Transform frequency table into table of proportions

ifelse

{base}

Return a or b depending on the value of test

library

{base}

Load an R package

is.element

{base}

Check if a value is element of a vector

recode

{dplyr}

Recode a variable

geom_point

{GGPLOT2}

Generates a scatter plot

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

setwd

{base}

Set Working Directory

ylab

{GGPLOT2}

Label the y axis (ggplot)

relevel

{stats}

Reorder Levels of Factor

as.numeric

{base}

Coerce a vector to numeric

rm

{base}

Remove objects

c

{base}

Combine values/vectors into a vector

ggplot

{GGPLOT2}

Create a ggplot graph

str

{utils}

Get the structure of an R object

lm

{base}

Fit a linear model

summary

{base}

Obtain summary statistics or detailed regression output

contrasts

{stats}

Get and Set Contrast Matrices (find reference category)

confint

{stats}

Calculate confidence Intervals for Model Parameters

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

log

{base}

log (default base = e)

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

mutate

{dplyr}

Modify/create a column in a data frame

The end!